package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.ByBusLocationModel;
import com.dibang.app.operation.model.impl.ByBusLocationModelImpl;
import com.dibang.app.operation.presenter.abs.ByBusLocationPresenter;
import com.dibang.app.operation.presenter.impl.ByBusLocationPresenterImpl;
import com.dibang.app.operation.view.abs.ByBusLocationView;
import com.dibang.app.operation.view.impl.ByBusLocationViewImpl;

/**
 * Created by wxl on 2019/8/5.
 */

public class ByBusLocationProImpl extends AbsProvider<ByBusLocationView,ByBusLocationPresenter,ByBusLocationModel> {


    @Override
    public ByBusLocationView getView() {
            return BeanFactory.getInstance(ByBusLocationViewImpl.class);
    }

    @Override
    public ByBusLocationPresenter getPresenter() {
        return BeanFactory.getInstance(ByBusLocationPresenterImpl.class);
    }

    @Override
    public ByBusLocationModel getModel() {
        return BeanFactory.getInstance(ByBusLocationModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(ByBusLocationViewImpl.class,ByBusLocationPresenterImpl.class,ByBusLocationModelImpl.class);
    }
}
